home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / UPC12BS1.ZIP / LIB / UUTYPES.H < prev    next >
C/C++ Source or Header  |  1993-10-02  |  8KB  |  167 lines

  1. #ifndef UUPC_TYPES
  2. #define UUPC_TYPES
  3.  
  4. /*--------------------------------------------------------------------*/
  5. /*    Changes Copyright (c) 1989 by Andrew H. Derbyshire.             */
  6. /*                                                                    */
  7. /*    Changes Copyright (c) 1990-1993 by Kendra Electronic            */
  8. /*    Wonderworks.                                                    */
  9. /*                                                                    */
  10. /*    All rights reserved except those explicitly granted by the      */
  11. /*    UUPC/extended license agreement.                                */
  12. /*--------------------------------------------------------------------*/
  13.  
  14. /*--------------------------------------------------------------------*/
  15. /*                          RCS Information                           */
  16. /*--------------------------------------------------------------------*/
  17.  
  18. /*
  19.  *    $Id: uutypes.h 1.10 1993/10/02 19:09:59 ahd Exp $
  20.  *
  21.  *    Revision history:
  22.  *    $Log: uutypes.h $
  23.  *     Revision 1.10  1993/10/02  19:09:59  ahd
  24.  *     Treat UUFAR as true FAR under Windows 3.x
  25.  *
  26.  *     Revision 1.9  1993/09/20  04:51:31  ahd
  27.  *     TCP Support from Dave Watt
  28.  *     't' protocol support
  29.  *     OS/2 2.x support (BC++ 1.0 for OS/2 support)
  30.  *
  31.  *     Revision 1.8  1993/07/31  16:28:59  ahd
  32.  *     Changes in support of Robert Denny's Windows Support
  33.  *
  34.  *     Revision 1.7  1993/07/22  23:26:19  ahd
  35.  *     First pass of changes for Robert Denny's Windows 3.1 support
  36.  *
  37.  *     Revision 1.6  1993/06/13  14:12:29  ahd
  38.  *     Changes per Mike McLagan for outbound batched news support
  39.  *
  40.  *     Revision 1.5  1993/05/30  00:11:03  ahd
  41.  *     Add UUFAR (far modifier)
  42.  *
  43.  *     Revision 1.4  1993/05/09  03:50:05  ahd
  44.  *     Support longname, honordebug, senddebug options
  45.  *
  46.  * Revision 1.3  1993/04/15  03:21:30  ahd
  47.  * Add bounce to boolean option list
  48.  *
  49.  * Revision 1.2  1993/04/11  00:36:59  dmwatt
  50.  * Global edits for year, TEXT, etc.
  51.  *
  52.  * Revision 1.1  1993/03/06  23:09:50  ahd
  53.  * Initial revision
  54.  *
  55.  */
  56.  
  57. /*--------------------------------------------------------------------*/
  58. /*         Define unique FAR keyword for selected memory hogs         */
  59. /*--------------------------------------------------------------------*/
  60.  
  61. #if defined(BIT32ENV)
  62. #define UUFAR
  63. #elif defined(__TURBOC__)
  64. #define UUFAR far
  65. #else
  66. #define UUFAR _far
  67. #endif
  68.  
  69. /*--------------------------------------------------------------------*/
  70. /*    Enumerated list used by the options= configuration line         */
  71. /*--------------------------------------------------------------------*/
  72.  
  73. typedef enum {
  74.  
  75. /*--------------------------------------------------------------------*/
  76. /*                          Per user options                          */
  77. /*--------------------------------------------------------------------*/
  78.  
  79.                F_ASKCC,       /* TRUE = ask for Carbon copies              */
  80.                F_DOSKEY,      /* TRUE = Use DOSKEY under DOS 5 if available*/
  81.                F_BACKUP,      /* TRUE = Backup mailbox before rewriting    */
  82.                F_DOT,         /* TRUE = period ends a message              */
  83.                F_AUTOPRINT,   /* TRUE = print next message automatically   */
  84.                F_AUTOEDIT,    /* TRUE = no line prompt, always edit        */
  85.                F_AUTOINCLUDE, /* TRUE = Perform automatic INCLUDE command  */
  86.                F_AUTOSIGN,    /* TRUE = append the signature file          */
  87.                F_EXPERT,      /* TRUE = Let user shoot self in foot w/o
  88.                                         a message.                         */
  89.                F_FROMSEP,     /* TRUE = Allow From to split messages       */
  90.                F_PAGER,       /* TRUE = Invert meaning of P/p T/t commands */
  91.                F_PURGE,       /* TRUE = Delete mailbox, if empty           */
  92.                F_SAVE,        /* TRUE = Save read messages in =mbox when
  93.                                         reading new mail.                  */
  94.                F_SAVERESENT,  /* TRUE = Save forwarded mail a second time  */
  95.                F_SUPPRESSCOPYRIGHT,
  96.                               /* Skip copyright message                    */
  97.                F_SPEEDOVERMEMORY,
  98.                               /* TRUE = Be lazy in strpool()               */
  99.                F_VERBOSE,     /* TRUE = Verbose RMAIL output               */
  100.                F_WINDOWS,     /* TRUE = Run RMAIL/RNEWS as Windows programs*/
  101.  
  102. /*--------------------------------------------------------------------*/
  103. /*                    Per system (GLOBAL) options                     */
  104. /*--------------------------------------------------------------------*/
  105.  
  106.                F_BANG,        /* TRUE = re-write addresses in bang (!) form*/
  107.                F_BOUNCE,      /* TRUE = Bounce bad mail to sender          */
  108.                F_COLLECTSTATS,/* TRUE = Report additional information in
  109.                                         various logs                       */
  110.                F_DIRECT,      /* TRUE = Deliver to subdirectories, not
  111.                                         files                              */
  112.                F_HONORDEBUG,  /* True = Accept -x flag from remote systems */
  113.                F_ESCAPE,      /* TRUE = Allow ESCAPE to act as Ctrl-Break  */
  114.                F_HISTORY,     /* TRUE = Maintain history of of articles
  115.                                         read and posted                    */
  116.                F_KANJI,       /* TRUE = enable Kanji (Japanese) support    */
  117.                B_LONGNAME,      /* TRUE = Exploit long names under OS/2, NT  */
  118.                F_MULTI,       /* TRUE = Deliver to multiple addresses on
  119.                                         remote host at once                */
  120.                F_MULTITASK,   /* TRUE = System is multitasking, watch
  121.                                         for race conditions                */
  122.                F_ONECASE,     /* TRUE = Remote host is case insensitive    */
  123.                F_SENDDEBUG,   /* True = Send -x flag to remote systems     */
  124.                F_SNEWS,       /* TRUE = Use Simple news delivery           */
  125.                F_SYMMETRICGRADES,
  126.                               /* TRUE = Use send grade as receive grade    */
  127.                F_SYSLOG,      /* TRUE = Write syslog with name and time of
  128.                                         each file transferred              */
  129.                F_UNDELETE,    /* TRUE = Do not override OS/2 undelete
  130.                                  support                                   */
  131.                F_USESYSFILE,  /* TRUE = RNEWS forwards news per SYS file   */
  132.                               // GMM - Batched ouytbound news support
  133.                F_LAST }       /* Dummy - Must be last - defines array size */
  134.                B_FLAG;        /* Boolean flag array - ahd                  */
  135.  
  136. /*--------------------------------------------------------------------*/
  137. /*                  Your basic Boolean logic values                   */
  138. /*--------------------------------------------------------------------*/
  139.  
  140. #undef FALSE
  141. #undef TRUE
  142. typedef enum
  143.       { FALSE = 0,
  144.         TRUE = 1 }
  145.         boolean;
  146.  
  147. /*--------------------------------------------------------------------*/
  148. /*                      Configuration mode flags                      */
  149. /*--------------------------------------------------------------------*/
  150.  
  151. typedef enum {
  152.       USER_CONFIG,
  153.       SYSTEM_CONFIG,
  154.       MODEM_CONFIG
  155.       } SYSMODE;
  156.  
  157. /*--------------------------------------------------------------------*/
  158. /*               enumerated type for configuration bits               */
  159. /*--------------------------------------------------------------------*/
  160.  
  161. typedef unsigned long CONFIGBITS;
  162. typedef unsigned short KEWSHORT; /* Integers in the config file      */
  163. typedef unsigned long  KEWLONG;    /* Integers in the config file      */
  164. typedef unsigned long  BPS;
  165.  
  166. #endif
  167.